/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kn.cstf2.implementation.Shared;

import kn.cstf2.cop.Bean.CopBean;
import java.util.Date;
import kn.cstf2.global.Utils.CstF2Exception;
import kn.cstf2.implementation.Bean.*;
import kn.cstf2.implementation.Server.ImplementationServer;
import kn.cstf2.transition.Bean.TransitionBean;


  public class ImplementationShared {
  ImplementationServer implementationServer = new ImplementationServer();
    
  public ClienteStkBean  GetAllDataFromClientesSTK (Integer knkey){
    
    ClienteStkBean clienteStkBean=new ClienteStkBean();
    if (clienteStkBean != null) {        
            clienteStkBean = implementationServer.obtenerTodosDatosFromClientesSTK(knkey);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return clienteStkBean;
   }  
    
  
    public T_asignStkBean  GetIfOwnerFromSTK (Integer knkey){
   
    T_asignStkBean t_asignStkBean = new T_asignStkBean(); 
    if (t_asignStkBean != null) {        
            t_asignStkBean = implementationServer.obtenerIfOwnerFromSTK(knkey);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return t_asignStkBean;
   }  
    
    
   public JoindocumenttransitionBean  GetStatusFechaArchivoFromJoindocumenttransition (Integer idtransition, Integer iddocument){
     
    JoindocumenttransitionBean joindocumenttransitionBean = new JoindocumenttransitionBean();
    
    if (joindocumenttransitionBean != null) {        
            joindocumenttransitionBean = implementationServer.obtenerStatusFechaArchivo(idtransition, iddocument);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return joindocumenttransitionBean;
   }    
    
    
    public DocumentsBean  GetIdFromDocuments (){
    
    DocumentsBean documentsBean = new DocumentsBean();
   
    if (documentsBean != null) {        
            documentsBean = implementationServer.obtenerIdFromDocuments();
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return documentsBean;
   }   
   
   
   public TransitionsBeanImp  GetAllRestInforT_transition(Integer id){
    
    TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.obtenerllRestInforT_transition(id);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }   
   
   public TransitionsBeanImp UpdateStatusDocumentsCop (Integer id, Boolean status, String date, String fecha){
    
   TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsCop(id, status, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }
   
   public TransitionsBeanImp UpdateStatusDocumentsContacts (Integer id, Boolean status, String date, String fecha){
    
   TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsContacts(id, status, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }
   
   public TransitionsBeanImp UpdateStatusDocumentsReporting (Integer id, Boolean status, String date, String fecha){
    
   TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsReporting(id, status, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }
   
   public TransitionsBeanImp UpdateStatusDocumentsSos (Integer id, Boolean status, String date, String fecha){
    
   TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsSos(id, status, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }
   
   public TransitionsBeanImp UpdateStatusDocumentsConditions (Integer id, Boolean status, String date, String fecha){
    
   TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsConditions(id, status, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }
   
   public TransitionsBeanImp UpdateStatusDocumentsCielID (Integer id, Boolean cielIDStatus, String date, String fecha){
    
   TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsCielID(id, cielIDStatus, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }
   
   public TransitionsBeanImp UpdateStatusDocumentsCielQ (Integer id, Boolean cielQuotationStatus, String date, String fecha){
    
   TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsCielQ(id, cielQuotationStatus, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }  
   
   
    public TransitionsBeanImp UpdateStatusDocumentsCarrier (Integer id, Boolean carrierChoise, String date, String fecha){
     
    TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
        
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsCarrier(id, carrierChoise, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   } 
        
    public TransitionsBeanImp UpdateStatusDocumentsWorking (Integer id, Boolean status, String date, String fecha){
    
   TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsWorking(id, status, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }
    
    public TransitionsBeanImp UpdateStatusDocumentsSop (Integer id, Boolean status, String date, String fecha){
    
   TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsSop(id, status, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }
    
    public TransitionsBeanImp UpdateStatusDocumentsKpi (Integer id, Boolean status, String date, String fecha){
    
   TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsKpi(id, status, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }
    
    public TransitionsBeanImp UpdateStatusDocumentsBilling (Integer id, Boolean status, String date, String fecha){
    
   TransitionsBeanImp transitionsBeanImp = new TransitionsBeanImp();
   
    if (transitionsBeanImp != null) {        
            transitionsBeanImp = implementationServer.actualizarStatusDocumentsBilling(id, status, date, fecha);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return transitionsBeanImp;
   }
    
   public DateStatusTransitionsBean GetDateOfStatusTransitions (Integer id){
     
    DateStatusTransitionsBean date = new DateStatusTransitionsBean();
        
    if (date != null) {        
            date = implementationServer.obtenerFechaStatusTransitions(id);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return date;
   } 
   
   public DateStatusTransitionsBean GetFechaOfStatusTransitions (Integer id){
     
    DateStatusTransitionsBean date = new DateStatusTransitionsBean();
        
    if (date != null) {        
            date = implementationServer.obtenerDateStatusTransitions(id);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return date;
   } 
   
   
    public JoindocumenttransitionBean GetJoindocumenttransitionData(TransitionBean transitionBean){
     
    JoindocumenttransitionBean joindocumenttransitionBean=new JoindocumenttransitionBean();
    if (joindocumenttransitionBean != null) {        
            joindocumenttransitionBean = implementationServer.obtenerJoindocumenttransitionData(transitionBean);
        } else {
            throw new CstF2Exception("El Usuario es null");
        }
    return joindocumenttransitionBean;
  }
    
      
      


  }
